package com.acme.bankapp.client;

import java.io.IOException;
import java.util.ArrayList;

/**
 * Created by splash on 20.11.2014.
 */
public class BankClientProxy {
    private BankClientTransport bankClientTransport;

    public BankClientProxy(BankClientTransport bankClientTransport) {
        this.bankClientTransport = bankClientTransport;
    }

    public BankClientTransport getBankClientTransport() {
        return bankClientTransport;
    }

    public ArrayList<String> sendCommand(String command) throws IOException {
        return bankClientTransport.request(command);
    }
}
